<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
		Yii::t('default','Profile')=>array('profile'),
		Yii::t('user_messages','Update Profile'),
);


?>

<h1><?php echo Yii::t('user_messages','Update Profile') ?></h1>


<?php if(Yii::app()->user->hasFlash('updateProfile.deactivate')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('updateProfile.deactivate'); ?>
</div>

<?php Yii::app()->user->logout(); ?>

<script type="text/javascript">
	setTimeout(function(){location.href="<?php echo  Yii::app()->getBaseUrl(true) ;?>/site/login"} , 10000);   
</script>

<?php else: ?>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>

<div class="help-block"><?php echo Yii::t('user_messages','updateProfile.info') ?> </div>

<?php endif; ?>